<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.common.enums.ZrState"%>
<%@page import="com.itextpdf.text.log.SysoCounter"%>
<%@page import="com.blockchain.console.servlets.trading.xlb.XlbList"%>
<%@page import="com.blockchain.console.servlets.trading.xlb.updateXlb"%>
<%@page import="com.blockchain.console.service.trading.entity.XlbEntity"%>
<%@page import="com.blockchain.common.enums.IsPass"%>
<%@page import="com.blockchain.common.enums.CoinType"%>
<html>
<head>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<%
CURRENT_CATEGORY="JYGL";
CURRENT_SUB_CATEGORY="XLBGL";
XlbEntity x=(XlbEntity)request.getAttribute("x");

%>
<body>
	<%@include file="/WEB-INF/include/header.jsp"%>
	<div class="w_main">
	<div class="main clearfix">  
    <div class="wrap">
        <div class="r_main">
            <div class="home_main">
            	<div class="box box1 mb15">
                	<div class="atil">
                    	<h3>编辑虚拟币</h3>
                  </div>
                    <div class="con">
                    <div class="clear"></div>
                    <form action="<%=controller.getURI(request, updateXlb.class)%>" method="post"  enctype="multipart/form-data" onsubmit="return checkImage();" class="form1">
                   <input type="hidden" name="id" value="<%=x.id%>">
                    <ul class="cell yw_jcxx">
                    <li>
                        <div class="til"><span class="red">&nbsp;</span></div>
                        <div class="info orange">
                        <%StringHelper.filterHTML(out, controller.getPrompt(request, response, PromptLevel.ERROR));%>
                        </div>
                        <div class="clear"></div>
                    </li>
                     <li>
                        <div class="til"><span class="red">*</span>英文简称：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required max-length-10" name="ywjc" value="<%StringHelper.filterHTML(out,x.ywjc);%>" />
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>英文名：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required max-length-20" name="ywm" value="<%StringHelper.filterHTML(out,x.ywm);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>中文名：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required max-length-20" name="zwm" value="<%StringHelper.filterHTML(out,x.zwm);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <%-- <li>
                        <div class="til"><span class="red">*</span>中文名（繁体）：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required max-length-20" name="coinNameTw" value="<%StringHelper.filterHTML(out,x.coinNameTw);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li> --%>
                    <li>
                        <div class="til"><span class="red">*</span>钱包服务器ip：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser  " name="wallet_ip" value="<%StringHelper.filterHTML(out,x.wallet_ip);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
       
                    <li>
                        <div class="til"><span class="red">*</span>钱包服务器端口：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser  " name="wallet_port" value="<%StringHelper.filterHTML(out,x.wallet_port);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>钱包服务器用户名：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser  " name="wallet_username" value="<%StringHelper.filterHTML(out,x.wallet_username);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>钱包服务器密码：</div>
                        <div class="info orange">
                        	<input type="password" class="text yhgl_ser  " name="wallet_password" value="<%StringHelper.filterHTML(out,x.wallet_password);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>转出最小限制：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="zc_zx" value="<%=Formater.formatAmount_6(x.zx_xz)%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>转出最大限制：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="zc_zd" value="<%=Formater.formatAmount_6(x.zd_xz)%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>最低转出手续费：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="zd_sxf" value="<%=Formater.formatAmount_6(x.zd_sxf)%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                     <li>
                        <div class="til"><span class="red">*</span>转出最高手续费率：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="zg_sxf" value="<%=Formater.formatAmount_6(x.zg_sxf)%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>热钱包地址：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="rqbdz" value="<%StringHelper.filterHTML(out,x.r_qbdz);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>热钱包私钥：</div>
                        <div class="info orange">
                        	<input type="password" class="text yhgl_ser required" name="rqbsy" value="<%StringHelper.filterHTML(out,x.r_qbsy);%>" disabled="disabled"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>冷钱包地址：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="lqbdz" value="<%StringHelper.filterHTML(out,x.l_qbdz);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>大于多少自动转入：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="dy_zdzr" value="<%StringHelper.filterHTML(out, x.dy_zdzr);%>"/>
                        	 <p tip>比特系列一定要大于手续费</p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                     <li>
                        <div class="til"><span class="red">*</span>推出日期:</div>
                        <div class="info orange">
                        	<input type="text" readonly="readonly" id="datepicker1" name="tcrq" class="text yhgl_ser  required" value="<%=TimestampParser.format(x.tcrq,"yyyy-MM-dd")%>"/>
                        	<p tip></p>
                        	<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>币种类型：</div>
                        <div class="info orange">
                        	<select name="coin_type" class="yhgl_sel">
                                <% for (CoinType s : CoinType.values()) {%>
								<option value="<%=s.name()%>" <%if ( x.coinType != null && s.name().equals(x.coinType.toString())) {%> selected="selected" <%}%>><%=s.getName()%></option>
								<%}%>
                            </select>
                        	 <p tip></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red"></span>方法ID：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser  " name="methodId" value="<%StringHelper.filterHTML(out, x.methodId);%>"/>
                        	 <p tip>以太坊</p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red"></span>合约地址：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser  " name="contractAddress" value="<%StringHelper.filterHTML(out, x.contractAddress);%>"/>
                        	 <p tip>以太坊</p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red"></span>单位：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser  " name="unit" value="<%StringHelper.filterHTML(out, x.unit);%>"/>
                        	 <p tip>以太坊(如1G wei = 1000000000)</p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red"></span>超过多少转入热钱包：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser " name="tranHotWallet" value="<%StringHelper.filterHTML(out, x.tranHotWallet);%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>是否自动转入冷钱包：</div>
                        <div class="info orange">
                        	<select name="sfzdzrlqb" class="yhgl_sel">
                                <%for (IsPass s : IsPass.values()) {%>
								<option value="<%=s.name()%>" <%if (s.name().equals(x.sfzdzrlqb.toString())) {%> selected="selected" <%}%>><%=s.getName()%></option>
								<%}%>
                            </select>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                     <li>
                        <div class="til"><span class="red">*</span>是否正常转入：</div>
                        <div class="info orange">
                        	<select name="zc_zr" class="yhgl_sel">
                                <%for (ZrState s : ZrState.values()) {%>
								<option value="<%=s.name()%>" <%if (s.name().equals(x.zc_zr.toString())) {%> selected="selected" <%}%>><%=s.getName()%></option>
								<%}%>
                            </select>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>是否正常转出：</div>
                        <div class="info orange">
                        	<select name="zc_zc" class="yhgl_sel">
                                <%for (IsPass s : IsPass.values()) {%>
								<option value="<%=s.name()%>" <%if (s.name().equals(x.zc_zc.toString())) {%> selected="selected" <%}%>><%=s.getName()%></option>
								<%}%>
                            </select>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>币种描述-简体</div>
                        <div class="info orange">
                        	<textarea name="coinDesc" cols="100" rows="5"><%StringHelper.filterHTML(out,x.coinDesc);%></textarea>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>币种描述-英文</div>
                        <div class="info orange">
                        	<textarea name="coinDescEn" cols="100" rows="5"><%StringHelper.filterHTML(out,x.coinDescEn);%></textarea>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <%-- <li>
                        <div class="til"><span class="red">*</span>币种描述-繁体</div>
                        <div class="info orange">
                        	<textarea name="coinDescTw" cols="100" rows="5"><%StringHelper.filterHTML(out,x.coinDescTw);%></textarea>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li> --%>
                    <li>
                        <div class="til"><span class="red"></span>图标：</div>
                        <div class="info orange">
                        <p class="mb10"><img src="<%=fileStore.getURL(x.tblj) %>" width="80px" height="80px" /></p>
                        <p class="mb10"><input type="file" name="image" ></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
               		</ul>
                    <div class="tc w220 pt20"><button type="submit" class="btn4 mr30 sumbitForme" style="cursor: pointer;" fromname="form1">确认</button>
                    	<a href="<%=controller.getURI(request, XlbList.class) %>" class="btn4">返回</a>
                    </div>
                	<div class="clear"></div>
                    </form>
                    <div class="clear"></div>                    
                  </div>
                </div>
              <div class="box2 clearfix"></div>
            </div>
        </div>   
    </div>
 	<%@include file="/WEB-INF/include/left.jsp" %>
	</div>
	</div>
	<%@include file="/WEB-INF/include/footer.jsp"%>
	<%@include file="/WEB-INF/include/script.jsp"%> 
	<script type="text/javascript" src="<%=controller.getStaticPath(request)%>/js/validation.js"></script>
	<%@include file="/WEB-INF/include/datepicker.jsp"%>
	<script type="text/javascript">
	$(function() {
		$("#datepicker1").datepicker({inline: true});
	    $('#datepicker1').datepicker('option', {dateFormat:'yy-mm-dd'});
	    $("#datepicker1").datepicker("setDate", "<%=TimestampParser.format(x.tcrq,"yyyy-MM-dd")%>");
	});
	
	</script>
</body>
</html>